using System;
using System.Collections.Generic;
namespace MicroMsg.UI.UserContrl
{
	public class InlineElementHelper
	{
		private static List<BaseInlineProcess> ProcessFactory;
		public static List<InLineResult> GetInLineResult(string text)
		{
			List<InLineResult> list = new List<InLineResult>();
			list.Add(new InLineResult
			{
				mText = text
			});
			for (int i = 0; i < InlineElementHelper.ProcessFactory.get_Count(); i++)
			{
				InlineElementHelper.ProcessFactory.get_Item(i).ProcessText(list);
			}
			return list;
		}
		static InlineElementHelper()
		{
			// Note: this type is marked as 'beforefieldinit'.
			List<BaseInlineProcess> list = new List<BaseInlineProcess>();
			list.Add(new SmileyProcess());
			list.Add(new EmojiProcess());
			list.Add(new UrlProcess());
			list.Add(new WebLinkProcess());
			list.Add(new PhoneNumberProcess());
			list.Add(new TextProcess());
			InlineElementHelper.ProcessFactory = list;
		}
	}
}
